import type { UploadFile } from "element-plus";
//商品对象结构
export interface Product {
    productId: number;
    name: string;
    price: number;
    stock: number;
    categoryId: number;
    categoryName: string;
    merchantId: number;
    merchantName: string;
    description: string;
    status: number;
    createTime: string;
    img: string;
    imgs: UploadFile[];
    keyword: string;
    pageNum?: number;
    pageSize?: number;
    sold: number
}
//订单

export interface order {
    createTime: string;
    orderId: string;
    orderItemList: any;
    addressName: string
    addressId: number | null,
    paymentMethod: number,
    shippingMethods: number,
    merchantId: number,
    totalAmount: number,
    status: number,
    cartItemList: CartItem[],
    isDelete: number
}

export interface CartItem {
    userAddressId: number;
    productId: number | null;
    quantity: number;
    priceSnapshot: number | null;
    addedAt: string;
    isChosen: number;
    product: Product;
}
export interface Banner {
    bannerId: number;
    bannerName: string;
    productId: number;
    productName: string;
    bannerImg: string;
    sort: number;
}